<template>
  <div id="nav-page">
    <div class="banner">
      <img src="../static/image/homePage/nav_banner.png" alt="">
    </div>
    <!-- 导航 -->
    <div class="menuTab">
      <div class="title">
        <span>字符尚云</span>
        <img src="../static/image/homePage/logo.png" alt="">
      </div>
      <div class="menu">
        <a-menu v-model="current" mode="horizontal">
          <a-sub-menu>
           <span slot="detail">
            </span>
          </a-sub-menu>    
          <a-sub-menu>
            <nuxt-link :to="{ path: '/function/funDetail' }" slot="title"  @mouseenter="visible = true"  @mouseleave="visible = false">
              功能概况
            </nuxt-link>
          </a-sub-menu> 
          <a-sub-menu>
            <span slot="title">
              企业版
            </span>
            <a-menu-item key="setting:1">
              企业版介绍
            </a-menu-item>
            <a-menu-item key="setting:2">
              解决方案
            </a-menu-item>
            <a-menu-item key="setting:3">
              企业案例
            </a-menu-item>
          </a-sub-menu>
          <a-menu-item key="material">
            素材广场
          </a-menu-item>
          <a-menu-item key="app">
            下载
          </a-menu-item>
          <a-menu-item key="price">
            价格
          </a-menu-item>
          <a-menu-item key="help">
            帮助中心
          </a-menu-item>
          <a-menu-item key="talk">
            谈论区
          </a-menu-item>
          <a-menu-item key="question">
            产品问答
          </a-menu-item>
        </a-menu>
      </div>
      <div class="login">
          <span>登录</span>
          <a-button type="primary">
            免费注册
          </a-button>
      </div>
      <div class="module" v-show="visible" @mouseenter="visible = true"  @mouseleave="visible = false">
        <div class="module-list">
          <a-row :gutter="16">
            <a-col :span="3" v-for="(item, i) in overviewList" :key="i" class="module-card">
              <div class="above">
                <icon :name="item.icon" />
                <h3>{{ item.title }}</h3>
              </div>
              <div v-html="item.content" class="content">
                <!-- {{item.content}} -->
              </div>
            </a-col>
          </a-row>
        </div>
      </div>
    </div>

    <nuxt />

    <!-- 底部 -->
    <div class="footer">
      <div v-for="(item, i) in footList" :key="i" class="list">
        <h2>{{ item.title }}</h2>
        <div v-for="(data) in item.list" :key="data" class="footer-link">
          <a href="#">{{ data }}</a>
        </div>
      </div>
      <div class="contact">
        <h2>联系我们</h2>
        <div class="content">
          <p>"如需帮助，请联系南京紫枫信息科技有限责任公司"</p>
        </div>
      </div>
      <div class="copyright">
        南京紫枫信息科技有限责任公司
        <p class="record">京ICP备1231456号</p>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        current: [],
        visible: false,
        show: false,
        overviewList: [
          {
            src: 'icon-tupian',
            title: '素材库',
            content: '内置丰富的模板<br />可自定义个人素材库<br />还可共享团队组件库'
          },
          {
            icon: 'icon-tupian',
            title: '设计',
            content: '一拖一拽轻松搭建界面<br />多种手势和转场效果<br />无需代码也能做出酷炫动效'
          },
          {
            icon: 'icon-tupian',
            title: '高效演示及评审',
            content: '真实设备边框、全屏演示<br />一键分享<br />在线获取评论'
          },
          {
            icon: 'icon-tupian',
            title: 'Sketch插件&标注',
            content: '导入Sketch稿<br />自动标注&切图<br />获取全平台代码'
          },
          {
            icon: 'icon-tupian',
            title: '云端编辑',
            content: '浏览器直接登录<br />随时随地办公<br />异地团队协作'
          },
          {
            icon: 'icon-tupian',
            title: '多人协作',
            content: '协同编辑、查看、审阅<br />项目同步、沟通透明<br />项目&成员便捷管理'
          },
        ],
        footList: [
          { 
            title: '产品',
            list: ['素材库','设计及演示', '企业版', '产品下载']
          },
          { 
            title: '支持',
            list: ['帮助中心','讨论区']
          },
          { 
            title: '关于',
            list: ['关于我们','加入我们', '使用条款', '隐私协议']
          },
          { 
            title: '更多',
            list: ['网址导航','设计大赛']
          },
        ]
      }
    },
    methods: {
    }
  }
</script>
<style lang="less">
#nav-page {
  .ant-menu-horizontal {
    border-bottom: none;
  }
  .ant-menu-item, .ant-menu-submenu-title {
    color: #415058;
    font-size: 14px;   
  } 
}

</style>
<style lang="less" scoped>
#nav-page {
  .banner {
    background: #101232;
    text-align: center;
    img {
      height: 60px;
    }
  }
  .menuTab {
    text-align: center;
    position: relative;
    height: 52px;
    width: 100%;
    div {
      display: inline-block;
    }
    .title {
      position: absolute;
      left: 150px;
      img {
        height: 32px;
      }
    }
    .menu {
      li {
        margin: 0 20px;
      }
    }
    .login {
      position: absolute;
      right: 150px;
    }
    .module {
      display: block;
      width: 100%;
      position: absolute;
      top: 30px;
      padding-top: 20px;
      background: #fff;
      .module-list {
        width: 100%;
        height: 230px;
        .module-card:hover {
          background: #f6f7f8;
        }
        .module-card {
          margin: 14px 12px 14px 0;
          padding: 27px 10px 19px;
          width: 190px;
          cursor: pointer;
          background: #fff;
          text-align: left;
          .above {
            display: block;
            border-bottom: 1px solid #dddddd;
            h3 {
              color: #1f292e;
              font-weight: 500;
              font-size: 14px;
              border-bottom: 1px solid #8d9ea7;
              margin: 0;
              padding: 14px 0 7px;
            }   
          }
          .content {
            color: #5b6b73;
            font-size: 12px;
            line-height: 1.9;
          }
        }
      }
    }
  }

  .footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px 16px 12px;
    font-size: 16px;
    line-height: 2;
    color: #1f292e;
    .list {
      width: 208px;
      h2 {
        margin: 0.83em 0;
        font-size: 14px;
        color: #1f292e;
        font-weight: 500;
      }
    }
    .contact {
      h2 {
        margin: 0.83em 0;
        font-size: 14px;
        color: #1f292e;
        font-weight: 500;
      }
      .content {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        color: #5b6b73;
        font-size: 14px;
        line-height: 2;
      }
    }
    .copyright {
      flex: 100%;
      margin-top: 40px;
      text-align: center;
      color: #c8cdd0;
      font-size: 12px;
      .record {
        color: #c8cdd0;
        font-size: 12px;
        margin-right: 16px;
        margin-top: 0;
      }
    }
  }
  
}
</style>